cmake_minimum_required(VERSION 3.10)
project(gsettings_monitor)

# 设置 C++ 标准
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 查找必要的依赖包
find_package(PkgConfig REQUIRED)
pkg_check_modules(GIO REQUIRED gio-2.0)

# 添加可执行文件
add_executable(gsettings_monitor
    main.cpp
)

# 包含目录
target_include_directories(gsettings_monitor PRIVATE
    ${GIO_INCLUDE_DIRS}
)

# 链接库
target_link_libraries(gsettings_monitor
    ${GIO_LIBRARIES}
)
